1 using UnityEngine;
2 using
System.Collections;
3
4 public
class AndroidHelper : MonoBehaviour {
5
6 #
if UNITY_ANDROID
7     
private static AndroidJavaClass ajc = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
8     
private static AndroidJavaObject ajo = ajc.GetStatic<AndroidJavaObject>("currentActivity");
9 #endif
10
11 }



Trò chơi đua xe động vật trong UNITY Engine 114.930 lượt xem

Gõ tìm kiếm nhanh...